﻿#ifndef ___Class_Image
#define ___Class_Image
#include "GameLib/Framework.h"
#include "Array2D.h"

class Image {
public:
	Image(const char* filename);
	void drawCell(int dx, int dy, int ix, GameLib::Framework& framework);
private:
	int mHeight;
	Array2D<unsigned> mData;
	static void readFile(char** buffer, int* size, const char* filename);
	static unsigned getUnsigned(const char* p);
};

#endif